package net.xiangcaowuyu.mybatis.service.impl;

import net.xiangcaowuyu.mybatis.entity.Book;
import net.xiangcaowuyu.mybatis.mapper.BookMapper;
import net.xiangcaowuyu.mybatis.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author laughing
 * @date 2020-10-16
 */
@Service
public class BookServiceImpl implements BookService {

    @Resource
    BookMapper bookMapper;

    /**
     * 查询book
     *
     * @param id 主键
     * @return book
     */
    @Override
    public Book selectByPrimaryKey(Integer id) {
        return bookMapper.selectByPrimaryKey(id);
    }
}
